#include <iostream>
using namespace std;

int foo(int a,int b);
int test(int a,int b);

int main()
{
int p=-1,k=0;
int j=foo(p,k);
cout<<"J="<<j<<endl;
}


int foo(int a, int b)
{
int p=a;//int_foo.def.p.scope=0.to.a.scope=-1
int k=4;//int_foo.def.k.scope=0.to.cnst=4
if(p==b)
	{
		p-=test(p,b);//this
	}
else
	{
		p-=test(b,p);//or this
	}

return p;
}




int test(int a, int b)
{
while(true)
{
int j=8;
}
int k;
k=a;
k=5;
int j=8;
j=b;

while(a>b)
	{
	if(a>b+1)
		{
			j=a;
		}
	b=j+a;
	}

return b;
}

